﻿#region Using Directives

    using System;

    using Csla;

#endregion

namespace MarketPulse.BusinessLogic.Common.Criteria
{
    /// <summary>
    /// Criteria class specifying the values to use to identify a single User
    /// </summary>
    [Serializable]
    public class UserGUIDCriteria : CriteriaBase<UserGUIDCriteria>
    {

        #region Constructors

            /// <summary>
            /// Default constructor for this class
            /// </summary>
            /// <param name="userGuid">The Guid of the User to associate with this criteria</param>                      
            public UserGUIDCriteria(Guid userGuid)
            {
                UserGUID = userGuid;
            }

        #endregion

        #region Properties

            /// <summary>This Guid is used to identify the User object associated with this criteria</summary>
            public static PropertyInfo<Guid?> UserGUIDProperty = RegisterProperty<Guid?>(p => p.UserGUID);

            /// <summary>This Guid is used to identify the User object associated with this criteria</summary>
            public Guid? UserGUID
            {
                get { return ReadProperty(UserGUIDProperty); }
                private set { LoadProperty(UserGUIDProperty, value); }
            }

        #endregion

    }
}
